<%@ page isELIgnored="false" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -->
<html>
<head>

<base href="<%=request.getContextPath() %>/">
<title></title>
		<link rel="stylesheet" href="css/addNewtp.css" />
		<script type="text/javascript" src="js/jquery-1.x.js"></script>
		<script type="text/javascript" src="js/changeH.js"></script>
	</head>
	<body>
		<script type="text/javascript">
			window.onload=function(){
			var msg= "${msg}";
			if(!(msg==""||msg==null)){
				var pmsg=document.getElementById("pmsg");
				pmsg.innerHTML=msg;
			}
	}
	
			</script>
	
			<div id="pc">
				<div class="head">

		            <div class="navBox">
		            
		
		                <!-- 导航栏 -->
		
						
						<div class="logo">
						<input type="image" src="img/headlogo.png" style="margin-left:200px;width:300px;height:80px"/>
		             	</div>
		                <div class="nav">
		                    <ul>
		                        <li  id="din">
		
		                            <a href="/VoteWeb/articleListServlet">投票列表</a>
		
		                        </li>
		
		                        <li class="seleLi">
		
		                            <a href="admin/addNewtp.jsp">添加新投票</a>
		
		                        </li>
		
		                        <li>
		
		                            <a href="articleListServlet?flag=me">维护</a>
		
		                        </li>

								<li>
									<a href="Statistics">统计分析</a>
								</li>


		                    </ul>
		
		                    <div class="an">
		                        <a class="esta" href="javascript:(0)">你好，${sessionScope.username}</a>                     
		                    </div >
		                    
		                    <div class="an3"><a href="/VoteWeb/logout">注销</a></div>
		
		                </div>
		               
		
		            </div>


      	 		 </div>
			
			
			<!-- 添加投票 -->
			
				<div class="third">
					<div class="add"><img src="img/title_ico.gif" style="vertical-align:middle" />添加新投票</div>
					<div class="line3"></div>
					<div>${sessionScope.msg}</div>
					<form action="articleListServlet?flag=add" method="post" onsubmit="return check()">
						<table  >
							<tr>
								<td>投票内容：</td>
								<td><input type="text" name="title" class="bb" /></td>
							</tr>
							<tr>
								<td>投票类型：</td>
								<td align="left">
									<input type="radio" name="type" value="0" checked="checked">单选
									<input type="radio" name="type" value="1">多选
								</td>
							</tr>
							<tbody id="addTr">
							<tr>
								<td>投票选项：</td>
								<td><input type="text" name="option" class="bb"/></td>
							</tr>
							<tr>
								<td></td>
								<td><input type="text" name="option" class="bb"/></td>
							</tr>
							</tbody>
							<tr>
								<td></td>
								<td align="left">
									<input type="image" src="img/button_submit.gif" style="vertical-align:middle" />
									&nbsp;&nbsp;&nbsp;
									<a  id="getStr">增加选项</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a href="admin/index.jsp">取消操作</a>
								</td>
							</tr>
						</table>
					</form>
			</div>
			</div>

			<div class="bottom"></div>
	</body>
</html>